import { _decorator, Component, find, Node } from 'cc';
import { GameManager, GameState } from './GameManager';
const { ccclass, property } = _decorator;

@ccclass('Gameover')
export class Gameover extends Component {
    start() {

    }

    update(deltaTime: number) {
        
    }

    next(){
        this.node.active=false;
        GameManager.getInstance().gameState=GameState.GAME_OVER;
        

    }
}


